package com.jjh.utils;

import com.jjh.pojo.User;

/**
 * 用户线程工具类
 */
public class UserThreadLocal {

    private static final ThreadLocal<User> threadLocal = new ThreadLocal<>();

    public static User get(){
        return threadLocal.get();
    }

    public static void set(User user){
        threadLocal.set(user);
    }

    public static void remove(){
        threadLocal.remove();
    }



}
